package com.hm.jiaowuxitong.service;
import com.hm.jiaowuxitong.dao.IGradeDao;
import com.hm.jiaowuxitong.dao.GradeDaoImp;


import java.util.List;
import java.util.Map;
public class GradeServiceImp implements IGradeService {

    IGradeDao dao=new GradeDaoImp();
    @Override
    public int addGrade(Map<String, Object> oMap) {
        return dao.insertGrade(oMap);
    }

    @Override
    public List<Map<String, Object>> getGrades() {
        return dao.selectGrades();
    }

    @Override
    public List<Map<String, Object>> getGrades1(String id) {
        return dao.selectGrades1(id);
    }
}
